<?php
class Block_BlkCity extends Zend_View_Helper_Abstract{

	public function blkCity($template = 'default'){
		$view  = $this->view;
		$arrParam = $view->arrParam;
		$flagShow = true;
		if($flagShow == true){
			$db = Zend_Registry::get('connectDb');
			//$db = Zend_Db::factory($adapter, $config);
			
			//Tinh thanh noi bat
			$selectNoibat = $db -> select()
								-> from('cities AS ci',array('id','name','alias','mien'))
								-> where('ci.status = ?', 1)
								-> where('ci.block_noibat = ?', 1)
								-> order('ci.order ASC')
								-> order('ci.id ASC');
			$rowNoibat = $db->fetchAll($selectNoibat);
			
			include(BLOCK_PATH . '/BlkCity/'.$template.'.php');
		}
	}
}